var Sequelize = require('sequelize');

// defaultValue: Sequelize.NOW : 时间戳值
// allowNull: boolean
// primaryKey: boolean
// autoIncrement: boolean
// field: string You can specify a custom field name via the "field" attribut

// If a particular field of a model is set to allow null (with allowNull: true) and
// that value has been set to null , its validators do not run.
const varchar_10 = Sequelize.STRING(10);
const varchar_20 = Sequelize.STRING(20);
const varchar_50 = Sequelize.STRING(50);
const varchar_60 = Sequelize.STRING(60);
const varchar_1000 = Sequelize.STRING(1000);
const varchar_2000 = Sequelize.STRING(2000);
const int = Sequelize.INTEGER;

module.exports = {
  varchar_10,
  varchar_20,
  varchar_50,
  varchar_60,
  varchar_1000,
  varchar_2000,
  int
}
